home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / trim_lib / trim_dbg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-29  |  1.7 KB  |  35 lines

  1. /******************************************************************************
  2. * Trim_dbg.c - Provide a routine to print Trimmed surface objects to stderr.  *
  3. *******************************************************************************
  4. * Written by Gershon Elber, Dec. 94.                          *
  5. ******************************************************************************/
  6.  
  7. #include "trim_loc.h"
  8. #include "iritprsr.h"
  9.  
  10. /*****************************************************************************
  11. * DESCRIPTION:                                                               M
  12. * Prints trimmed surfaces to stderr. Should be linked to programs for        M
  13. *  debugging purposes, so trimmed surfaces may be inspected from a debugger. M
  14. *                                                                            *
  15. * PARAMETERS:                                                                M
  16. *   Obj:       A trimmed surface - to be printed to stderr.               M
  17. *                                                                            *
  18. * RETURN VALUE:                                                              M
  19. *   void                                                                     M
  20. *                                                                            *
  21. * KEYWORDS:                                                                  M
  22. *   TrimDbg, debugging                                                       M
  23. *****************************************************************************/
  24. void TrimDbg(void *Obj)
  25. {
  26.     char *ErrorMsg;
  27.     TrimSrfStruct
  28.     *TrimSrf = (TrimSrfStruct *) Obj;
  29.  
  30.     TrimWriteTrimmedSrfToFile3(TrimSrf, stderr, 0, "TrivDbg", &ErrorMsg);
  31.  
  32.     if (ErrorMsg)
  33.     fprintf(stderr, "TrimDbg Error: %s\n", ErrorMsg);
  34. }
  35.